package com.itboye.services.ucenter.impl;

import com.itboye.mybatis.mapper.IBaseMapper;
import com.itboye.mybatis.mapper.IUcenterAppMapper;
import com.itboye.mybatis.model.UcenterAppModel;
import com.itboye.services.ucenter.BaseService;
import com.itboye.services.ucenter.interfaces.IUcenterAppService;
import com.itboye.system.helper.ByConsoleHelper;
import org.apache.ibatis.session.SqlSession;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;


/**
 * Created by hebidu on 16/7/19.
 */
@Service("ucenterAppService")
public class UcenterAppService extends BaseService<UcenterAppModel> implements IUcenterAppService {

    public IBaseMapper<UcenterAppModel> getMapper() {
        return ucenterAppMapper;
    }

    public UcenterAppService() {
        super();
        ByConsoleHelper.debug("ucenterAppService init",logger);
    }

    @Resource
    private IUcenterAppMapper ucenterAppMapper;


    private static final Logger logger = LogManager.getLogger(UcenterAppService.class.toString());

    public UcenterAppModel getInfoByAppID(String appId){
        return  ucenterAppMapper.getInfoByAppID(appId);
    }

}
